<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
 .searchtag {display: inline;}
 .searchtag dd {
    color: #5C5C5C;
    background:#FEF9DE;
    display: inline;
    float: left;
    white-space: nowrap;
    margin-left:10px;
    padding:1px;
}

.searchtag dd span {background: url("../images/sprite.png") no-repeat scroll -126px -30px transparent; 
    cursor: pointer;
    display: inline-block;
    height: 12px;
    overflow: hidden;
    position: relative;
    top: 2px;
    width: 13px;

    }
    
    
.searchtag {
    position: relative;
}
.searchtag dt {
    left: 15px;
    position: absolute;
    top: 10px;
}
#keyword_list_div {}
#keyword_list_div span {color: #5C5C5C; background:#FEF9DE;height:22px;display: inline-block;margin:2px;padding:2px;min-width: 80px;text-align: center;}
.content_main table td {text-align: left;}

</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">广告订单->订单创建</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;"><span style="color:#229BC1;font-weight: bold;">广告基本信息</span> -&gt;投放条件-&gt;投放媒体选择-&gt;完成 </th>
        </tr>
      </table>
    </div>
  </div>
  
  <div class="content_main">
	    <form action="/campaign/update_campaign_state.shtml" name="form01">
	    <input name="id" value="${campaign.adId}" type="hidden" /><input name="state" id="state" value="" type="hidden" />
	    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
	      <tbody>
	          <tr>
              <td width="15%">广告信息: </td>
              <td>状态 ：<app:basestus status="${campaign.status}" type="adcampaign"></app:basestus>&nbsp;&nbsp;接包价格:${campaign.price}元</td>
             </tr>
             <tr>
              <td width="15%">投放价格: </td>
              <td><input type="text" name="price" value="${push.price}" onkeypress="util.justNum[46]"  style="width:80px;"/>&nbsp;元</td>
             </tr>
             <tr>
              <td width="15%">操作选项</td>
              <td>
                <div class="lapel" style="background:#FFFFFF;text-align: left;border-bottom:none;">   
                <c:choose>
	               <c:when test="${campaign.status=='1'}">
	                   <input name="" type="button" class="input01" onclick="us(${campaign.adId},'2')" value="审核通过" />&nbsp;<input name="" type="button" onclick="us(${campaign.adId},'5')" class="input01" value="拒绝" />
                   </c:when>
	               <c:when test="${campaign.status=='2'}"> <input name="" type="button" class="input01" onclick="us(${campaign.adId},'3')" value="暂停" />&nbsp; </c:when>
	               <c:when test="${campaign.status=='3'}">
	                  <input name="" type="button" class="input01"  onclick="us(${campaign.adId},'2')" value="启动 " />
	               <a href="javascript:void(0)" onclick="us(${campaign.adId},'2')">启动</a> &nbsp;<a href="/campaign/to_campaign.shtml?id=${campaign.adId}">编辑</a></c:when>
	               <c:when test="${campaign.status=='5'}"><a href="/campaign/to_campaign.shtml?id=${campaign.adId}">编辑</a></c:when>
	            </c:choose>
                    
                       
                </div>
              </td>
             </tr>
         </tbody>
	    </table>
	    </form>
  </div>
  
  
  
  
  
</div>
<div id="boxId" style="position: absolute;background: red;display:none;"><span style="color:#fff;">正在加载...</span></div>
</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript">
     validate.addvalidte(document.form01,{
        rules:{
           "price":{checkNull:true}
           },
	    message:{}
	    });
    function us(id,s){
   	 if(confirm('确定操作?')){
   		 util.$('state').value=s;
   		 validate.submit();
   	 }
    }
 
</script>
